/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ModelLayer;

/**
 *
 * @author Martin
 */
public class SalesLineItem {
    private int lineItemId;
    private int amount;
    private SalesOrder salesOrder;
    private Product product;
    
    public SalesLineItem()
    {}

    public SalesLineItem(int lineItemId, int amount, SalesOrder salesOrder, Product product) {
        this.lineItemId = lineItemId;
        this.amount = amount;
        this.salesOrder = salesOrder;
        this.product = product;
        
    }

    /**
     * @return the amount
     */
    public int getAmount() {
        return amount;
    }

    /**
     * @param amount the amount to set
     */
    public void setAmount(int amount) {
        this.amount = amount;
    }

    /**
     * @return the salesOrder
     */
    public SalesOrder getSalesOrder() {
        return salesOrder;
    }

    /**
     * @param salesOrder the salesOrder to set
     */
    public void setSalesOrder(SalesOrder salesOrder) {
        this.salesOrder = salesOrder;
    }

    /**
     * @return the product
     */
    public Product getProduct() {
        return product;
    }

    /**
     * @param product the product to set
     */
    public void setProduct(Product product) {
        this.product = product;
    }

    /**
     * @return the lineItemId
     */
    public int getLineItemId() {
        return lineItemId;
    }

    /**
     * @param lineItemId the lineItemId to set
     */
    public void setLineItemId(int lineItemId) {
        this.lineItemId = lineItemId;
    }
}
